package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.*;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface TrackInfoService extends IService<TrackInfo> {

    UploadTrackVo uploadTrack(MultipartFile file);

    void saveTrackInfo(TrackInfoVo trackInfoVo);

    IPage<TrackListVo> findUserTrackPage(TrackInfoQuery trackInfoQuery, Integer pageNo, Integer pageSize);


    void updateTrackInfo(Integer id,TrackInfoVo trackInfoVo);

    void removeTrackInfo(Long trackId);

    IPage<AlbumTrackListVo> findAlbumTrackPage(Long albumId, Long pageNo, Long pageSize);

    @Tag(name = "album_TrackReceiver_kafka")
    void trackStatUpdata(TrackStatMqVo trackStatMqVo);

    TrackStatVo getTrackStatVo(Long trackId);

    List<TrackPayVo> findUserTrackPaidList(Long trackId);

    List<TrackInfo> findPaidTrackInfoList(Long trackId, Integer trackCount);
}
